import './App.css';
import MyLogo from './components/MyLogo';
import MyHeader from './components/MyHeader';
import MyEntry from './components/MyEntry';
import MyTabbar from './components/MyTabbar';
import MySeckill from './components/MySeckill';
import MySwipe from './components/MySwipe';
import Shangou from './components/Shangou';

//rcc 生成类组件
//rsf 生成函数式组件

import React, { Component } from 'react';


class App extends Component {
  render() {
    return (
      <div className='app'>
        {/* 首页logo组件 */}
        <MyLogo />
        {/* 首页输入框组件 */}
        <MyHeader />
        <div className="content">
          {/* 首页轮播图组件 */}
          <MySwipe />
          {/* 首页商品分类列表组件 */}
          <MyEntry />
          {/* 首页闪购组件 */}
          <Shangou />
          {/* 秒杀商品列表组件 */}
          <MySeckill />
        </div>
        {/* 首页底部导航栏组件 */}
        <MyTabbar />
      </div>
    );
  }
}

export default App;